Skip to content

Conversation

intergalacticspacehighway
Copy link
Contributor

@intergalacticspacehighway intergalacticspacehighway commented Dec 21, 2020

Closes #1413

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

  • The below matching files needed changes.
  • Run
yarn test checkbox
yarn test radio
yarn test Provider

🧢 Your Project:

tabIndex,
disabled: isDisabled,
readOnly: isReadOnly,
'aria-readonly': isReadOnly,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may want to do something like this since false is the default:

Suggested change
'aria-readonly': isReadOnly,
'aria-readonly': isReadOnly || undefined,

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! Fixed

@devongovett devongovett merged commit d200ad5 into adobe:main Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove readonly attribute from checkboxes, switches, and radios
2 participants